﻿using System.Diagnostics.CodeAnalysis;
using Swimj.CommonLib.Attributes;
using Swimj.CommonLib.Constants;

namespace Admin.CommonLib.Models.User
{
    public class UserInfoResponseDto
    {
        // [TableColumn(DisplayText = "标识")]
        public Guid Key { get; set; }

        [TableColumn(DisplayText = "头像", ColumnType = ColumnType.Avatar)]
        //[ExcelColumn(DisplayText = "头像")] 
        public string? Avatar { get; set; }

        [TableColumn(DisplayText = "用户名", IsSorted = true)]
        [ExcelColumn(DisplayText = "用户名")]
        [NotNull]
        public string? UserName { get; set; }

        [TableColumn(DisplayText = "姓名", IsSorted = true)]
        [ExcelColumn(DisplayText = "姓名")]
        public string? RealName { get; set; }

        [TableColumn(DisplayText = "邮箱")]
        [ExcelColumn(DisplayText = "邮箱")]
        public string? Email { get; set; }

        [TableColumn(DisplayText = "联系电话")]
        [ExcelColumn(DisplayText = "联系电话")]
        public string? Phone { get; set; }

        [TableColumn(DisplayText = "性别")]
        [ExcelColumn(DisplayText = "性别")]
        public string? Sex { get; set; }

        [TableColumn(DisplayText = "数据状态", ColumnType = ColumnType.Custom)]
        [ExcelColumn(DisplayText = "数据状态")]
        public int DataState { get; set; }

        public string? Description { get; set; }

        public DateTime? Birthday { get; set; }
    }
}